﻿using System.Linq;

namespace Afiniczny
{
    class Alphabet
    {
        private static string alphabet = " aąbcćdeęfghijklłmnńoóprsśtuwyzźżAĄBCĆDEĘFGHIJKLŁMNŃOÓPRSŚTUWYZŹŻ";

        public static char getCharFromIndex(int a_index)
        {
            return alphabet[a_index];
        }

        public static int getIndexOfChar(char a_char)
        {
            return alphabet.IndexOf(a_char);
        }

        public static int getAlphabetLenght()
        {
            return alphabet.Length;
        }

        public static bool isContainCharacter(char a_char)
        {
            return alphabet.Contains(a_char);
        }
    }
}
